pvfb: Split mouse and keyboard into separate devices.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 7 Feb 2007 16:12:40 +0000 (16:12 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 7 Feb 2007 16:12:40 +0000 (16:12 +0000)
commit6b91de464c93f0c24e72de22d81a8192a39920e4
tree86902f6f6bce002d5694e2e8a9f0d2faac1a74ee
parentb64ef24e2f1684085b9f12aef1dc5fbd5bea5c3f
pvfb: Split mouse and keyboard into separate devices.

This patch creates two separate input devices for keyboard and mouse
events.  The reason for this is to separate them in the linux input
layer and allow them being routed different ways.

Use case:  Configure the X-Server like this to get the mouse
events directly from the linux input layer, which has the major
advantage that absolute coordinates work correctly:

Section "InputDevice"
  Driver       "evdev"
  Identifier   "Mouse"
  Option       "Device" "/dev/input/event<nr>"
EndSection

This makes the keyboard stop working though in case mouse and
keyboard events are coming through the same input device, at least
with older Xorg (6.9) versions.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
Assign fake pci product identifiers down from 0xffff. This may help
clarify that the devices are not actually PCI. Also it reduces
probability of accidental conflict if further real PCI assignments
occur in future (0x0002, 0x0003, ... would be obvious next identifiers
to allocate).

Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/fbfront/xenkbd.c